<%@ page language="java" contentType="text/html;charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath %>">
<title><s:text name="sys.app_title" /></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="../include/contentheader.jsp"%>
<link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
<link rel="stylesheet" type="text/css" href="css/main.css"/>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
	function validateAll(){
		if($("#mainstatusname").val()==''){alert("请输入主状态的名称");$("#mainstatusname").focus();return false;}
		if($("#secondname").val()==''){alert("请输入从状态的名称");$("#secondname").focus();return false;}
        return true;
		}
</script>
</head>


<body class="ContentBody">
	<form action="updateProdStatusMst.action" method="post" onsubmit="return validateAll()">
	<div class="MainDiv">
	<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
		<tr>
			<th class="tablestyle_title" >资产状态信息修改</th>
		</tr>
		<tr>
		    <td class="CPanel">
				<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
				<tr>		
				   <td width="100%">
					  	<fieldset style="height:100%;">
						<legend>资产状态信息</legend>			      
							<table align="center" border="0" cellpadding="2" cellspacing="1" style="width:100%">
							  <tr>
							  	
							  </tr>
							  <tr>
							  	<td style="width: 33%">主状态名称：</td>
							  	<td style="width: 33%">
							  	   <input type="hidden" value="2" name="param"/>
							  	   <input type="hidden" name="prodStatusMst.seq" value="<s:property value='prodStatusMst.seq'/>"/>
							  	   <input type="hidden" name="prodStatusMst.statusdesc" value="<s:property value='prodStatusMst.statusdesc'/>"/>
							  	   <input type="hidden" name="prodStatusMst.subcode" value="<s:property value='prodStatusMst.subcode'/>"/>
							  	   <input type="text"  id="secondname" value="<s:property value='prodStatusMst.statusdesc'/>" disabled="disabled"/>
							  	</td>
							  </tr>
							  
							  <tr>
							  	<td style="width: 33%">从状态名称：</td>
							  	<td>
							  	 <input type="text" name="prodStatusMst.subdesc" id="secondname"  value="<s:property value='prodStatusMst.subdesc'/>"/>
							  	</td>
							  </tr>
							  <tr>
							  	<td style="width: 33%">资产状态的使用情况：</td>
							  	<td style="width: 33%">
							  	<s:if test='prodStatusMst.status=="Y"'>
							  	    <input type="radio" id="zy" name="prodStatusMst.status" value="Y" checked="checked"/><label for="zy">在用</label>
							        <input type="radio" id="qy" name="prodStatusMst.status" value="N"  /><label for="qy">弃用</label>	
							  	</s:if>
							  	<s:else>	
							  	 <input type="radio" id="zy" name="prodStatusMst.status" value="Y"/><label for="zy">在用</label>
							  	 <input type="radio" id="qy" name="prodStatusMst.status" value="N" checked="checked" /><label for="qy">弃用</label>	
							  	</s:else>  
							  	</td>
							  </tr>
							</table>
					  		<br />
						</fieldset>	
					</td>
				</tr>
				</table>
			</td>
		</tr>			
		<tr>
			<td colspan="3" align="center" height="50px">
			<input type="submit" id="submit" value="保存" />
			<input type="button" value="返回" onclick="window.history.go(-1);"/>
			</td>
		</tr> 
	</table>
	</div>
	</form>
</body>
</html>